package com.lxl.bt.activity;

import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import androidx.annotation.Nullable;
import androidx.appcompat.widget.Toolbar;

import com.lxl.bt.R;
import com.lxl.bt.activity.BaseActivity;
import com.lxl.bt.util.ACache;
import com.yanzhenjie.sofia.Sofia;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Create by lvxinlong
 * on  领袋绑卡
 * on  2020年12月4日13:50:07
 **/
public class ChangePasswordActivity extends BaseActivity {


    @BindView(R.id.ivBack)
    ImageView ivBack;
    @BindView(R.id.rlBack)
    RelativeLayout rlBack;
    @BindView(R.id.txt_toolbar_title)
    TextView txtToolbarTitle;
    @BindView(R.id.ivRight)
    ImageView ivRight;
    @BindView(R.id.tvRight)
    TextView tvRight;
    @BindView(R.id.rlRight)
    RelativeLayout rlRight;
    @BindView(R.id.toolbar)
    Toolbar toolbar;
    @BindView(R.id.tv1)
    EditText tv1;
    @BindView(R.id.tv2)
    EditText tv2;
    @BindView(R.id.tv3)
    EditText tv3;
    @BindView(R.id.tvCommit)
    TextView tvCommit;
    private Context context;
    ACache aCache;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_changepassword);
        ButterKnife.bind(this);
        //状态栏全透明全屏显示页面，布局能够延伸到状态栏和导航栏下方
        Sofia.with(this)
                .invasionStatusBar()
//                .statusBarLightFont()
                .statusBarDarkFont()
                .statusBarBackgroundAlpha(0)
                .invasionNavigationBar()
                .navigationBarBackgroundAlpha(0);

        context = this;
        rlBack.setVisibility(View.VISIBLE);
        txtToolbarTitle.setText("修改登录密码");
        toolbar.setBackgroundResource(R.color.color_F2F2F2);
        txtToolbarTitle.setTextColor(getResources().getColor(R.color.c63));
        ivBack.setImageResource(R.mipmap.black_back);
        aCache = ACache.get(this);
//        tvCardno.setText(Prefs.getStringValue(Constant.CARDNO));
    }




    @OnClick({R.id.rlBack, R.id.tvCommit})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.rlBack:
                finish();
                break;
            case R.id.tvCommit:
                break;
        }
    }
}
